// 引入 request.js
import request from "@/utils/request.js";

// 封装 user登录接口
export const login = data => request({
  url: '/login',
  method: 'post',
  data
})

// 封装 user注册接口
export const register = data => request({
  url: '/register',
  method: 'post',
  data
})

// 用户详情
export const userDetail = id => request({
  url: '/user/' + id
})
